-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[visualizations] Reduce page load bundle to under 100kB #98302
Conversation
@elasticmachine merge upstream |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Pinging @elastic/kibana-app (Team:KibanaApp) |
@elasticmachine merge upstream |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, I did various tests locally on almost all our visualizations. It seems that it works fine and is a great enhancement. Thank you Alex!
@elasticmachine run elasticsearch-ci/docs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉 Thanks for reducing the bundle size! Ops limit change LGTM
ping @elastic/kibana-design |
@elastic/kibana-design could someone give this a code owner review, please? |
@elasticmachine merge upstream |
💚 Build SucceededMetrics [docs]Module Count
Async chunks
Public APIs missing exports
Page load bundle
History
To update your PR or re-run it, just comment with: |
@elasticmachine run elasticsearch-ci/docs |
* [visualizations] Reduce page load bundle to under 100kB * move scss to async chunks * fix CI Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> # Conflicts: # packages/kbn-optimizer/limits.yml
Closes: #95874
Summary
The
visualizations
plugin is currently92.1KB
(goal was already achieved but we decided to optimize it more) To consider #95874 issue closed, the limits.yml should be updated forvisualizations
with the value under100KB
.visualizations
What was done it that PR:
limits.yml
was updated. New limit to 'visualizations' plugin is90KB
VisualizeEmbeddable
in async way. We needed it to lazy loadscss styles
and exclude related code from the main bundleVis
in async way. We needed it to lazy loadscss styles
and exclude related code from the main bundle